﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WRSManagementSystem.DomainModel.Entities.Person>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Szczegóły
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Szczegóły</h2>        

     <%
         Html.RenderPartial("PersonView", Model);%>

    <fieldset>
    <legend>Zadania</legend>
        <%
         Html.RenderPartial("TaskView", Model.Tasks);%>
    </fieldset>

    <fieldset>
    <legend>Projekty</legend>
        <%
         Html.RenderPartial("ProjectView", Model.CreatedProjects);%>
        <%=Html.ActionLink("Dodaj", "../Project/Create", new {Creator = Model.Id})%> 
    </fieldset>


    <br />
    <p>
        <%=Html.ActionLink("Edytuj", "../People/Edit", new {id = Model.Id})%> |
        <%=Html.ActionLink("Powrót do listy", "../People/Index")%>
    </p>

</asp:Content>

